package com.cqc.aiyagril2;

import android.app.Application;
import android.os.Handler;

/**
 * Created by ${cqc} on 2018/1/12.
 * app
 */

public class MyApp extends Application {

    private static MyApp instance;
    private static Handler handler;

    @Override
    public void onCreate() {
        super.onCreate();
        instance =this;
        handler = new Handler();
    }

    public static MyApp getInstance() {
        return instance;
    }
    public static Handler getMainHandler() {
        return handler;
    }


}
